<#--配置页面面板属性-->
<#assign pannel_config>
{       "page_config":{
		"page_name":"文章管理",
		"module_name":"info/article"
		},
		"queryform":{
	          "form_id":"query_form",	
	          "sqlid":"info.article.query",
	          "switch_filter":"sexDemo",
	          "checkbox_filter":"lockDemo",
	          "fields":[
						 {"name":"cat_id","type":"select","label":"文章分类","dict":"info_category","div_width":"200","placeholder":"请输入文章分类"},
						 {"name":"title","type":"text","label":"文章标题","div_width":"200","placeholder":"请输入文章标题"} 
						], 
			   "tab_buttons":[
			  					 {"button_id":"s1","type":"submit","button_name":"查询" } 
			  				 ]
			  },
		"queryresult":{ 
	            "table_id":"adminDatagrid", 
	            "is_load":"true", 
	            "is_page":"true",
	            "width":"680px",
	            "height":"550px",
	            "inputs":"content_id:",
	            "delkey":"content_id",
	            "del_sqlid":"info.article.delete",
	            "add_url":"info/article/add.html",
	            "edit_url":"info/article/edit.html",
	            "columnlist":[
					           	{"title":"#","field":"","sort":"","style":"","type":"numbers","fixed":"left"},
					           	{"title":"","field":"","sort":"","style":"","checkbox":"true","fixed":"left"},
					           	{"title":"编号","field":"content_id","width":"80","sort":"true","fixed":"left","style":""},
					           	{"title":"标题","field":"title","width":"200","sort":"true","fixed":"left","style":""},
								{"title":"摘要","field":"article_desc","width":"250","sort":"true"},
								{"title":"关键字","field":"keywords","width":"100","align":"center"},
								{"title":"排序","field":"sort","width":"80"},
								{"title":"是否显示","field":"is_show","width":"100","templet":"#isShowTpl"},
								{"title":"分类","field":"cat_name","width":"120" ,"templet":"#isShow"},
								{"title":"创建时间","field":"creat_time","width":"160"},
								{"title":"操作","field":"update_time","width":"180","align":"center","fixed":"right","toolbar":"#barTools"}
							],
			    "tab_buttons":[
			    				{"button_id":"b1","button_name":"增加","event":"add","title":"增加文章","icon":"&#xe654;"},
			    				{"button_id":"b2","button_name":"批量删除","event":"bathdel","icon":"&#xe640;"},
			    				{"button_id":"b4","button_name":"刷新","event":"refresh","url":"#","icon":"&#x1002;"}
			    			],      
			    "tools_buttons":[
			    				{"tool_button_id":"t1","button_name":"查看","event":"detail","title":"查看文章"},
			    				{"tool_button_id":"t2","button_name":"编辑","event":"edit","title":"编辑文章"},
			    				{"tool_button_id":"t3","button_name":"删除","event":"del"}
			    			]           
        	 } 
}
</#assign>
<#--为table 转换需要的qryresult-->
<#assign pannelConfig=pannel_config?eval>
<#include "admin/template/page/comn_query.html">
 <script type="text/html" id="isShowTpl">
	<input type="checkbox" name="is_show" lay-skin="switch"  value="{{d.content_id}}" sqlid="info.article.status"   lay-text="显示|不显" lay-filter="sexDemo"  {{ d.is_show == 1 ? 'checked' : '' }}>
 </script>
